<?php

namespace Models;

use Classes\BaseModel;

class Projects_Model extends BaseModel
{
    public function GetProjects()
    {
        //TODO: Add limits and pagination functions to the sql code.
        if ( $projects = $this->db->get_results("SELECT * FROM Projects") )
        {
            return $projects;
        }
        else
        {
            //todo: Throw exception no projects are found
        }
    }
}
